package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.TechCourseMapper;
import com.ruoyi.course.domain.TechCourse;
import com.ruoyi.course.service.ITechCourseService;

/**
 * 课程信息Service业务层处理
 * 
 * @author admin
 * @date 2022-08-06
 */
@Service
public class TechCourseServiceImpl implements ITechCourseService 
{
    @Autowired
    private TechCourseMapper techCourseMapper;

    /**
     * 查询课程信息
     * 
     * @param courseId 课程信息主键
     * @return 课程信息
     */
    @Override
    public TechCourse selectTechCourseByCourseId(Long courseId)
    {
        return techCourseMapper.selectTechCourseByCourseId(courseId);
    }

    /**
     * 查询课程信息列表
     * 
     * @param techCourse 课程信息
     * @return 课程信息
     */
    @Override
    public List<TechCourse> selectTechCourseList(TechCourse techCourse)
    {
        return techCourseMapper.selectTechCourseList(techCourse);
    }

    /**
     * 新增课程信息
     * 
     * @param techCourse 课程信息
     * @return 结果
     */
    @Override
    public int insertTechCourse(TechCourse techCourse)
    {
        return techCourseMapper.insertTechCourse(techCourse);
    }

    /**
     * 修改课程信息
     * 
     * @param techCourse 课程信息
     * @return 结果
     */
    @Override
    public int updateTechCourse(TechCourse techCourse)
    {
        return techCourseMapper.updateTechCourse(techCourse);
    }

    /**
     * 批量删除课程信息
     * 
     * @param courseIds 需要删除的课程信息主键
     * @return 结果
     */
    @Override
    public int deleteTechCourseByCourseIds(Long[] courseIds)
    {
        return techCourseMapper.deleteTechCourseByCourseIds(courseIds);
    }

    /**
     * 删除课程信息信息
     * 
     * @param courseId 课程信息主键
     * @return 结果
     */
    @Override
    public int deleteTechCourseByCourseId(Long courseId)
    {
        return techCourseMapper.deleteTechCourseByCourseId(courseId);
    }
}
